FROM java:8
ADD target/foodie-dev-api-1.0-SNAPSHOT.jar /foodie-dev.jar
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 8088
ENTRYPOINT ["java","-Xms256m","-Xmx512m","-jar","foodie-dev.jar"]